/**
 * MineAdmin is committed to providing solutions for quickly building web applications
 * Please view the LICENSE file that was distributed with this source code,
 * For the full copyright and license information.
 * Thank you very much for using MineAdmin.
 *
 * @Author X.Mo<root@imoi.cn>
 * @Link   https://github.com/mineadmin
 */
import type { ResponseStruct } from '#/global'

export interface MenuVo {
 
}
//一级商品分类
export function getParentList(data: MenuVo): Promise<ResponseStruct> {
  return useHttp().post('/GoodsCategory/getParentList', data)
}
//排序
export function setSort(data: MenuVo): Promise<ResponseStruct> {
  return useHttp().post('/GoodsCategory/setSort', data)
}
//图片批量
export function editGoodsImgsForIds(data: MenuVo): Promise<ResponseStruct> {
  return useHttp().post('/product/editGoodsImgsForIds', data)
}
//推荐商品批量
export function goodsRecommendSet(data: MenuVo): Promise<ResponseStruct> {
  return useHttp().post('/product/goodsRecommendSet', data)
}
//商品分类批量
export function editGoodsCategoryForIds(data: MenuVo): Promise<ResponseStruct> {
  return useHttp().post('/product/editGoodsCategoryForIds', data)
}
//分类确定
export function addfeilei(data: MenuVo): Promise<ResponseStruct> {
  return useHttp().post('/GoodsCategory/add', data)
}
//分类删除
export function deletes(data: MenuVo): Promise<ResponseStruct> {
  return useHttp().post('/GoodsCategory/delete', data)
}

//编辑
export function goodsSave(data: MenuVo): Promise<ResponseStruct> {
  return useHttp().post('/product/goodsSave', data)
}

//批量删除
export function delGoodsForIds(data: MenuVo): Promise<ResponseStruct> {
  return useHttp().post('/product/delGoodsForIds', data)
}

//详情
export function goodsInfo(data: MenuVo): Promise<ResponseStruct> {
  return useHttp().post('/product/goodsInfo', data)
}
//列表
export function getOrderList(data: MenuVo): Promise<ResponseStruct> {
  return useHttp().post('/product/goodslistall', data)
}
//商品分类
export function getOrderList2(data: MenuVo): Promise<ResponseStruct> {
  return useHttp().post('/GoodsCategory/getAll?t=1', data)
}
//商品排序
export function setGoodsSort(data: MenuVo): Promise<ResponseStruct> {
  return useHttp().post('/product/setGoodsSort', data)
}

//批量修改商品名称
export function editGoodsNameForIds(data: MenuVo): Promise<ResponseStruct> {
  return useHttp().post('/product/changeNameForType', data)
}
//批量修改商品状态
export function editGoodsStatusForIds(data): Promise<ResponseStruct> {
  return useHttp().post('/product/editGoodsStatusForIds', data)
}
//批量修改富文本
export function editGoodsNoteForIds(data: MenuVo): Promise<ResponseStruct> {
  return useHttp().post('/product/editGoodsNoteForIds', data)
}
//批量购买范围
export function editGoodsStartEndForIds(data: MenuVo): Promise<ResponseStruct> {
  return useHttp().post('/product/editGoodsStartEndForIds', data)
}
//批量充值地址和密码
export function editGoodsRechargeForIds(data: MenuVo): Promise<ResponseStruct> {
  return useHttp().post('/product/editGoodsRechargeForIds', data)
}
//颜色
export function editGoodsColorForIds(data: MenuVo): Promise<ResponseStruct> {
  return useHttp().post('/product/editGoodsColorForIds', data)
}
//热门
export function editGoodsIsHotForIds(data: MenuVo): Promise<ResponseStruct> {
  return useHttp().post('/product/editGoodsIsHotForIds', data)
}
//批量成不定价
export function editGoodsPriceForIds(data: MenuVo): Promise<ResponseStruct> {
  return useHttp().post('/product/editGoodsPriceForIds', data)
}
//批量余额限购
export function editGoodsNeedMyAccountMinFree(data: MenuVo): Promise<ResponseStruct> {
  return useHttp().post('/product/editGoodsNeedMyAccountMinFree', data)
}
//批量数量
export function editGoodsOrderCountForIds(data: MenuVo): Promise<ResponseStruct> {
  return useHttp().post('/product/editGoodsOrderCountForIds', data)
}
//仅余额支付
export function editGoodsNeedMyAccountFree(data: MenuVo): Promise<ResponseStruct> {
  return useHttp().post('/product/editGoodsNeedMyAccountFree', data)
}
//获取限购策略列表
export function getTacticsList(data: MenuVo): Promise<ResponseStruct> {
  return useHttp().post('/product/getTacticsList', data)
}
//修改批量策略
export function editTactics(data: MenuVo): Promise<ResponseStruct> {
  return useHttp().post('/product/editTactics', data)
}
//图片上传
export function uploads(data: MenuVo): Promise<ResponseStruct> {
  return useHttp().post('/product/upload', data)
}
//批量設置允許渠道
export function editGoodsAllowChannelsForIds(data: MenuVo): Promise<ResponseStruct> {
  return useHttp().post('/product/editGoodsAllowChannelsForIds', data)
}
//批量設置禁用渠道
export function editGoodsFailChannelsForIds(data: MenuVo): Promise<ResponseStruct> {
  return useHttp().post('/product/editGoodsFailChannelsForIds', data)
}
//图片空间接口
export function getUploadFiles(data: MenuVo): Promise<ResponseStruct> {
  return useHttp().post('/product/getUploadFiles', data)
}
//批量自定义
export function savePriceLIst(data: MenuVo): Promise<ResponseStruct> {
  return useHttp().post('/product/savePriceLIst', data)
}
//等级列表
export function userLevelList(data: MenuVo): Promise<ResponseStruct> {
  return useHttp().post('/product/userLevelList', data)
}

//获取定价模版
export function getPlanList(data: MenuVo): Promise<ResponseStruct> {
  return useHttp().post('/product/getPlanList', data)
}
//获取等级价格详情
export function getOneGoodsLevelPrice(data: MenuVo): Promise<ResponseStruct> {
  return useHttp().post('/product/getOneGoodsLevelPrice', data)
}
//商品列表分类
export function getCategorize(data: MenuVo): Promise<ResponseStruct> {
  return useHttp().post('/Product/getCategorizeForGoodsInfo', data)
}
//获取渠道下拉
export function getDockList(data: MenuVo): Promise<ResponseStruct> {
  return useHttp().post('/Product/getDockList', data)
}

//商品列表分类
// export function getCategorize(data: MenuVo): Promise<ResponseStruct> {
//   return useHttp().post('/product/getCategorizeForGoodsInfo', data)
// }
